#ifndef CODECS_H
#define CODECS_H

#include <QDialog>
#include <QTextCodec>
#include <QList>
#include <QTextStream>
#include <QFileDialog>
#include <QMessageBox>
#include <QWheelEvent>
#include "combobox.h"
#include "ui_codecs.h"

class Codecs : public QDialog, private Ui::Codecs
{
Q_OBJECT

public:

Codecs(QWidget * parent = 0);
QString return_decoded() const { return decoded_data; }

private slots:

void update_textEdit();
void open_file();

private:

ComboBox * codecsComboBox;
void set_encoded( const QByteArray & data );
void find_codecs();
QByteArray encoded_data;
QString decoded_data;
QList<QTextCodec *> codecs;

protected:

};

#endif // CODECS_H
